package com.atguigu.structure.facade;

import java.io.Serializable;

public class ComputerFacade {
    private Screen screen=Screen.getInstance();
    private Host host=Host.getInstance();
    private Mouse mouse=Mouse.getInstance();
    private Keyboard keyboard= Keyboard.getInstance();

    public void start(){
        screen.open();
        host.open();
    }

    public void use(){
        mouse.use();
        keyboard.use();
    }

    public void end(){
        host.close();
        screen.close();
    }
}
